package com.griddroid.configuration;

import android.os.Message;
import android.widget.ProgressBar;
import com.griddroid.activities.Client;

/**
 * This is the configuration for the Client Node. It extends the basic configuration class {@link GridConfig
 * GridConfig} and adds some standard final values for the messages handled by
 * {@link Client Client}. The value in Message's {@link Message#what
 * what} field provided to the {@link Client#messageHandler messageHandler }
 * controls the visibility of the view's {@link ProgressBar ProgressBar}, prints
 * work results, or warns for an error.
 * 
 * @author Charalampos Mavroforakis
 * @author Michail Michailidis
 * @author Thomas Ailianos
 */
public class GridClientConfig extends GridConfig
{
	/**
	 * given as a value in Message's {@link Message#what what} field
	 * starts view's {@link ProgressBar ProgressBar}
	 */
	public static final int START_WAITING = 1285;
	/**
	 * given as a value in Message's {@link Message#what what} field
	 * stops view's {@link ProgressBar ProgressBar}
	 */
	public static final int STOP_WAITING = 1286;
	/**
	 * given as a value in Message's {@link Message#what what} field
	 * prints work results on view.
	 */
	public static final int WORK_RESPONSE = 1287;
	/**
	 * given as a value in Message's {@link Message#what what} field
	 * prints an error on view.
	 */
	public static final int ERROR = 1288;
}
